﻿CREATE TABLE [dbo].[Machine] (
    [Id]              INT           IDENTITY (1, 1) NOT NULL,
    [HostName]        VARCHAR (50)  NOT NULL,
    [Status]          INT           NOT NULL,
    [SchedulerCenter] BIT           DEFAULT ((0)) NOT NULL,
    [MonitorCenter]   BIT           DEFAULT ((0)) NOT NULL,
    [ExecutionCenter] BIT           DEFAULT ('1') NOT NULL,
    [FullName]        VARCHAR (255) NULL,
    [UserId]          INT           DEFAULT ((4)) NOT NULL,
    [BackupPosition]  SMALLINT      NULL,
    PRIMARY KEY CLUSTERED ([Id] ASC) WITH (ALLOW_PAGE_LOCKS = ON, ALLOW_ROW_LOCKS = ON, PAD_INDEX = OFF, IGNORE_DUP_KEY = OFF, STATISTICS_NORECOMPUTE = OFF),
    FOREIGN KEY ([UserId]) REFERENCES [dbo].[User] ([Id]) ON DELETE NO ACTION ON UPDATE NO ACTION
);











